package
{
   import flash.system.Security;
   
   import jp.progression.casts.CastDocument;
   import jp.progression.config.WebConfig;
   
   import scenes._Game_sc;

   /**
    * @author  cjboy1984@gmail.com
    */
   public class _Game extends CastDocument
   {

      // --------------------- LINE ---------------------

      public function _Game()
      {
         super('game', _Game_sc, new WebConfig(null, true, false) );
      }

      // ################### protected ##################

      override protected function atReady():void
      {
         // debug
         //Debugger.addTarget( manager );
         //Locale.language = Locale.JAPANESE;
         //stage.addChild(new Stats()); // benchmark
         //stage.addChild(new MyDebug()); // my debug utils
         
         // policy
         Security.loadPolicyFile("http://a1.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://a2.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://a3.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://a4.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://a5.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://a6.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://a7.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://a8.sphotos.ak.fbcdn.net/crossdomain.xml");
         Security.loadPolicyFile("http://profile.ak.fbcdn.net/crossdomain.xml");
         
         // facebook
//         if (ExternalInterface.available)
//         {
//            Facebook.init('152204381520601');
//         }

         // manager
         manager.sync = true; // deep-link SWFAddress
         manager.goto(manager.syncedSceneId);
      }

      // #################### private ###################

      // --------------------- LINE ---------------------

      // --------------------- LINE ---------------------

   }

}
